package service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import vo.Commodity;
import vo.CommodityItem;
import vo.OrderForm;
import vo.Store;

public interface StoreManager {
	public Store login(String email,String passwd);
	public int regist(String email,String passwd);
	public int apply(Store s);
	public Store getInfoByEmail(String email, Store s);
	public boolean alterStatus(String email,int status);
	public List<Commodity> findFood(String email);
	public int addFood(Commodity commodity);
	public int deleteFood(int id);
	public List<OrderForm> findOrdersByStoreId(String storeId);
	public List<CommodityItem> findItemsByOrderId(String orderNumber);
	public boolean bindingMail(Store store, String newemail);
	boolean sendMail(Store store);
	public Store updatePasswd(String email, String password, String newpassword);
	public List<OrderForm> findOrders(String email);
	public int deleteTouSuByOrderId(Integer orderId);
}
